/**
 * 
 */
package com.effectivsocial.service.impl;

import java.util.List;

import javax.inject.Inject;
import javax.inject.Named;

import org.springframework.data.domain.Pageable;

import com.effectivsocial.domain.Application;
import com.effectivsocial.domain.TwitterApp;
import com.effectivsocial.repository.TwitterRepository;
import com.effectivsocial.service.api.AbstractService;
import com.effectivsocial.service.api.TwitterService;

/**
 * @author Dhrubo
 *
 */
@Named
public class TwitterServiceImpl extends AbstractService<TwitterApp, String> implements
		TwitterService {

	
	private static final long serialVersionUID = 1L;
		
	@Inject
	private TwitterRepository repository;
	
	/* (non-Javadoc)
	 * @see com.effectivsocial.service.api.BusinessService#findByDeleted(org.springframework.data.domain.Pageable, boolean)
	 */
	@Override
	public List<TwitterApp> findByDeleted(Pageable pageable, boolean deleted) {
		
		return null;
	}

	
	@Override
	protected void initInternal() {
		setRepository(repository);
	}


	@Override
	public List<TwitterApp> findByApplication(Application application) {
		return repository.findByApplication(application);
	}


	

}
